<!doctype html>
<html lang="{{ app()->getLocale() }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- SSLの場合 -->
<title>ログイン</title>
@if(app('env')=='production')
<link rel="stylesheet" href="{{ secure_asset('/css/pure-min.css') }}">
<link rel="stylesheet" href="{{ secure_asset('/css/main.css') }}">
<link rel="stylesheet" href="{{ secure_asset('/css/login.css') }}">
<script src="{{ secure_asset('/js/login.js') }}"></script>
<link rel="stylesheet" href="{{ secure_asset('/bootstrap/css/bootstrap.css') }}">
<script src="{{ secure_asset('/bootstrap/js/bootstrap.js') }}"></script>
@else
<!-- SSLではない場合 -->
<link rel="stylesheet" href="{{ asset('/css/pure-min.css') }}">
<link rel="stylesheet" href="{{ asset('/css/main.css') }}">
<link rel="stylesheet" href="{{ asset('/css/login.css') }}">
<script src="{{ asset('/js/login.js') }}"></script>
<link rel="stylesheet" href="{{ asset('/bootstrap/css/bootstrap.css') }}">
<script src="{{ asset('/bootstrap/js/bootstrap.js') }}"></script>
@endif

</head>
<body>
	<div class="flex-center position-ref full-height">
		<div class="content">
			<div>
				<img class="logo" src="../image/logo_andro.gif" alt="logo">
			</div>
			<div>
				<form class="pure-form pure-form-stacked" method="POST" action="login">
					<fieldset>
						<legend class="text-bold">ログイン</legend>
						<label for="login_id" class="text-left ">ログインID</label>
						<input id="login_id" name="login_id" type="text" placeholder="">
						<label for="password" class="text-left ">パスワード</label>
						<input id="password" name="password" type="password" placeholder="">
						<button id="login_button" type="submit"
							class="pure-button pure-button-primary">ログイン</button>
							    <input type="hidden" name="_token" value="{{csrf_token()}}">
					</fieldset>
				</form>
			</div>
			<div class="text-margin-top">
				パスワードを忘れた方は<a href="mailto:info@andoro.jp">こちら</a>
			</div>
			<div class="text-margin-top">
				新規登録のご依頼は<a href="mailto:info@andoro.jp">こちら</a>
			</div>
			<?php
                 if (session('errorCode', 0) == 1):
                    echo '<div class="errorCode" >ログインIDまたはパスワードが違います</div>';
                    session()->forget('errorCode');
			     endif
			?>


		</div>

	</div>

</body>
</html>
